import type { ResType } from '@/types'
import request from '@/utils/request'

export interface ArticleListItem {
  time: string
  name: string
  id: number
  key: number
}
export interface ArticleList {
  total: number
  data: ArticleListItem[]
}
export function api_articleList(data: any) {
  return request<ResType<ArticleList>>({
    url: '/articleList',
    method: 'post',
    data: data,
  })
}
export function api_List(data: any) {
  return request<ResType<ArticleList>>({
    url: '/list',
    method: 'post',
    data: data,
  })
}
